//
//  NetworkRequest+LicaiFuwu.h
//  URLDemo
//
//  Created by rimi on 15/10/9.
//  Copyright (c) 2015年 yangqin. All rights reserved.
//

#import "NetworkRequest.h"
typedef void(^LicaiSuccessBlock)(NSArray *responds);
typedef void(^DetailServiceBlock)(NSDictionary *detail);
typedef enum : NSUInteger {
    ZLTypeCodeJijin = 1,
    ZLTypeCodeBaoxian = 2,
    ZLTypeCodeLicai = 3,
    ZLTypeCodeGuijinshu = 7
} ZLTypeCode;

@interface NetworkRequest (LicaiFuwu)
/*
 *  parameters传枚举值即可
 */
- (void)getLicaiFuwuWithParameters:(ZLTypeCode)parameters successHandle:(LicaiSuccessBlock)success failureHandle:(failureBlock)faile;

// 搜索出来的列表
- (void)searchLicaiFuwuWithTypeCode:(ZLTypeCode)parameters proName:(NSString *) inputName successHandle:(LicaiSuccessBlock)success failureHandle:(failureBlock)faile;

// 根据产品id查找详细的产品（点击搜索出来的结果用）
- (void)searchLicaiFuwuWithTypeCode:(ZLTypeCode)parameters productCode: (NSString *)praductCode successHandle:(DetailServiceBlock)success fialureHandle:(failureBlock)failure;
@end
